const app = getApp()
Page({
    data: {
        navTitle: "食谱宝典",
        icon_next_page: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_next_page.png",
        // screenHeight: app.globalData.systemInfo.screenHeight,
        // windowHeight: app.globalData.systemInfo.windowHeight,
        // kMarginTop: app.globalData.navigationBarHeight,
        // navBarHeight: app.globalData.navigationBarHeight,
    },
    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function(options) {

        var that = this;
        var sceneList = [
            {
                scene_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_breakfast.png",
            },
            {
                scene_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_lunch.png",
            },
            {
                scene_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_dinner.png",
            },
            {
                scene_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_afternoon_tea.png",
            }
        ]

        var efficacyList = [
            {
                efficacy_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_hypertension.png",
            },
            {
                efficacy_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_diabetes.png",
            },
            {
                efficacy_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_Hyperlipidemia.png",
            }
        ]

        var typesList = [
            {
                types_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_seafoods.png",
            },
            {
                types_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_poultry.png",
            },
            {
                types_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_fruit.png",
            },
            {
                types_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_cereals.png",
            }
        ]

        that.setData({
            sceneList: sceneList,
            efficacyList: efficacyList,
            typesList: typesList
        });

    },

    onShow: function() {

    },


})
